<%@ page language="java" import="java.util.*,office.BusiUtil" pageEncoding="UTF-8"%>
<%@include file="/common/jsp/taglibs-nojs-nocss.jsp"%>
<%@ page isELIgnored="false" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<div id="pop_up_content">
	<div class="pop_up_title images_1">
		新建出差单
	</div>
	<div class="pop_up_body">
		<form id="thisForm" action="saveBroadcast.action" method="post" >
		<table border="0" cellpadding="0" cellspacing="0"  width="400">
			<!-- <tr>
				<td>
					<div class="form_input_value">
						公告标题
					</div>
				</td>
				<td>
					<input type="text" style="width:260px;" class="dialogy_input max_length:20 required" name="broadcastVo.name" value="<s:property value='broadcastVo.name'/>" >
					<font color="red">【不能为空且字数限制20字】</font>
				</td>
			</tr> -->
			<tr>
				<td valign="top">
					<div class="form_input_value">
						公告内容
					</div>
				</td>
				<td>
					<input type="hidden" name="broadcastVo.id" value="<s:property value='broadcastVo.id'/>" >
					<textarea rows="" cols="" name="broadcastVo.content" style='width:260px;height:100px;overflow-y:scroll;overflow-x:hidden;margin-left: 8px;' class="longinput max_length:1000 required"><s:property value='broadcastVo.content'/></textarea>
					<font color="red">【不能为空且字数限制1000字】</font>
				</td>
			</tr>
			<tr>
				<td>
					<div class="form_input_value">
						公告等级
					</div>
				</td>
				<td>
					<s:select id="leavel" list="#{'1':'非常重要','2':'重要','3':'一般'}" name="broadcastVo.leavel" headerKey="" headerValue="请选择" value="broadcastVo.leavel" theme="simple" cssClass="dialogy_input required"/>
					<font color="red">【必选】</font>
				</td>
			</tr>
			<tr>
				<td>
					<div class="form_input_value">
						公告状态
					</div>
				</td>
				<td>
					<s:select id="sd" list="#{'1':'发布到主页','0':'不进行发布'}" name="broadcastVo.status" headerKey="" headerValue="请选择" value="broadcastVo.status" theme="simple" cssClass="dialogy_input required"/>
					<font color="red">【必选】</font>
				</td>
			</tr>
			<tr>
				<td></td>
				<td>
					<input id="thisButton" type="button" value="保存" class="btn" onmouseout="this.className='btn'" onmousedown="this.className='btn1'" onmouseover="this.className='btn2'">
					<input type="button" value="取消" class="btn" onclick="hideDialog();" onmouseout="this.className='btn'" onmousedown="this.className='btn1'" onmouseover="this.className='btn2'">
				</td>
			</tr>
		</table>
		</form>
	</div>
</div>
<script type="text/javascript">
	/* 表单提交 */
	i.formSubmit("thisButton",	//绑定的按钮id
					  "thisForm" ,   //提交的表单id
					  function(result){
						  	var jsonMsgObj=new JsonMsgObj(result);
							var  msg=jsonMsgObj.getMessage();
						    var codeId=jsonMsgObj.getCodeid();
							var isOk=jsonMsgObj.getIsok();
							if( isOk ){
							    aerouiAlert(msg);
								hideDialog();// 隐藏窗口
								window.location.reload();
							}else{		// 如果编辑失败了
							  JsManageInfoHandleException( result , function(msg , codeId , isOk){
							  		hideDialog();// 隐藏窗口
							   });
						   }
						});
</script>